import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/work_history_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/work_history_entity.g.dart';

///作业历史概述
@JsonSerializable()
class WorkHistoryEntity {
  WorkHistoryEntity();

  factory WorkHistoryEntity.fromJson(Map<String, dynamic> json) =>
      $WorkHistoryEntityFromJson(json);

  /// 作业数量(异常数量)
  int? ticketCount = 0;

  ///	作业类型ID
  String? ticketTypeId = '';

  /// 作业类型
  String? ticketTypeName = '';

  ///	作业时间
  String? workDate = '';

  /// 显示的比例
  double value = 0;

  Map<String, dynamic> toJson() => $WorkHistoryEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
